Quick Report
Reports are very important in many applications. It provides summary information
and results of your application. Managers and users like to get all possible reports
from any application. Some times application capabilities are measured by the number
of reports that can be generated by this application.
Quick report is a navtive VCL report that exists in Delphi. Now we will show how
simple you can build your first report in Delphi.
In your database application do the following:
- Click File/New/Quick Report
- In QuickReport form set DataSet property to the Table or Query that contains your
report data
- From QReport components palette drop qrBand
- Make sure that BandType property of qrBand is set to Title
- In this band (Title) you can drop qrLabel which represents report title
- Drop another qrBand and set it's BandType to Column Header
- You can drop qrLabels in this new band to write record headers (Field names)
- Drop third qrBand and set it's BandTyppe to Detail
- In this Detail band you can drop qrDBText which has DataSource and DataField properties
- In this qrDBText you can display dataset records
- To view this report write:
QuickReport1.Preview;
At run-time after displaying your report, you can select the printer, print the
report, or save it for later display.